<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>留言板</title>
    {% block style %}{% endblock %}
    <!-- 新 Bootstrap 核心 CSS 文件 -->
    <link href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <style>
        #content{
            padding-top: 10vw;
        }
    </style>
</head>
<body>
<div class="container">
	<div class="row clearfix">
		<div class="col-md-12 column">
			<nav class="navbar navbar-default navbar-inverse navbar-fixed-top" role="navigation">
				<div class="navbar-header">
					 <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span class="sr-only">Toggle navigation</span><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></button> <a class="navbar-brand" href="#">Brand</a>
				</div>

				<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
					<ul class="nav navbar-nav">
						<li class="active">
							 <a href="/name/qwe">留言板</a>
						</li>
						<li>
							 <a href="/name/board/">反馈</a>
						</li>

					</ul>
					<ul class="nav navbar-nav navbar-right">
                    {% if cook %}
                        <li><a href="/name/logout"><span class="glyphicon glyphicon-user"></span> 注销</a></li>
                        <li><a href="#"><span class="glyphicon glyphicon-user"></span> {{cook}}</a></li>
                    {% else %}
                        <li><a href="/name/register"><span class="glyphicon glyphicon-user"></span> 注册</a></li>
                        <li><a href="/name/login"><span class="glyphicon glyphicon-user"></span> 登录</a></li>
                    {% endif %}
					</ul>
				</div>

			</nav>
		</div>
	</div>

</div>
<div id="content" class="container">
    {% block content %}
        <h1>主页</h1>
    {% endblock %}

</div>




<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>

<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</body>
</html>